package teehee.Manager;
import java.text.DecimalFormat;

/**
 * @author Naseen Safa
 * 
 */
public class BmiManager 
{

	public static double calculateBMI(String weight, String height)
	{
		double w = Double.parseDouble(weight);
		double h = Double.parseDouble(height);
	
		double calc = (w/(h*h))*703;
		DecimalFormat twoDForm = new DecimalFormat("#.#");
		double BMI = Double.valueOf(twoDForm.format(calc));
		return BMI;
	}
	
}
